Skip to content

Support Perforce (p4) - #597

Open
t04dJ14n9 wants to merge 4 commits into
x-motemen:masterfrom
t04dJ14n9:feat/p4-backend
Open

t04dJ14n9 wants to merge 4 commits into
x-motemen:masterfrom
t04dJ14n9:feat/p4-backend

Conversation

@t04dJ14n9

Copy link
Copy Markdown

This adds a Perforce backend, so depot paths can be managed with ghq like any other repository:

$ ghq get p4://p4.example.com:1666/depot/proj/main
     clone p4://p4.example.com:1666/depot/proj/main -> ~/ghq/p4.example.com/depot/proj/main
        p4 -p p4.example.com:1666 -c alice_myhost_depot_proj_main_1a2b3c4d client -i
        p4 -p p4.example.com:1666 -c alice_myhost_depot_proj_main_1a2b3c4d sync
$ ghq get -u p4://p4.example.com:1666/depot/proj/main   # p4 sync
$ ghq list
p4.example.com/depot/proj/main

Design

  • URLs: p4://[user@]host[:port]/depot/path (P4PORT host:port, default port 1666) and
    p4+ssl://… (P4PORT ssl:host:port). The local path is <root>/<host>/depot/path; ghq already drops the
    port. --vcs=p4/perforce and ghq.<url>.vcs = p4 also work, treating other schemes as plain TCP. The following are
    rejected before p4 is run: depot paths with p4 wildcards or revision specifiers (..., *, @, #, %), quotes,
    control characters or empty/./.. components; URL fragments and queries; unknown p4+ schemes; and passwords.
  • get: p4 client -o <name>, then set Root to the target directory and View to
    "//depot/path/..." "//<name>/..." (plus an exclusion of a depot .p4config), then p4 client -i via stdin,
    then write <root>/.p4config with P4PORT/P4CLIENT (and P4USER if the URL has a user), then p4 sync.
    -p, -c (and -u) are always passed explicitly, so P4PORT/P4CLIENT/P4CONFIG from the environment never
    redirect ghq to another server or client.
  • Client names are <user>_<hostname>_<depot path slug>_<hash>, sanitized to [A-Za-z0-9_-]. The hash covers
    all inputs (user, hostname, server, depot path, local root), so names stay unique after sanitizing and truncating.
    An existing client with that name is reused only if its Root is the target directory (e.g. after ghq rm).
    Its stale have list is then cleared with p4 sync -k //<client>/...#none before syncing. Any other
    same-named client is left untouched and ghq refuses.
  • Failures: the target directory is claimed with an atomic mkdir. Before the sync starts, a failure removes
    only ghq's .p4config and the directory if it is still empty. If p4 sync itself fails, the workspace is kept and
    ghq get -u resumes it. p4's own messages (no login, connection failures, rejected views) are shown.
  • get -u: p4 sync with the server and client from .p4config, after checking that the client still exists and is
    rooted at the workspace (p4 sync writes to the root recorded on the server). Because ghq paths omit the port and
    a trailing .git, a URL naming another server, user or depot path that maps to the same directory is refused.
  • list: .p4config marks a workspace if it names a client with a tcp/ssl P4PORT. It is checked after every other
    backend's marker. Shared P4CONFIG files without a client, or in a root or <host> directory, don't hide the repositories
    below them. A P4PORT such as rsh:<command> is never passed to p4.
  • migrate: RemoteURL rebuilds the p4:// URL from .p4config and the client view. migrate checks that the
    client is rooted at the source, moves the workspace and updates the client's Root. If the update fails, migrate
    re-reads the client and moves the workspace back only when the old root is confirmed.
  • Unsupported: ghq create (no Init, like CVS), --branch/@revision, --bare (clear errors);
    --shallow, --partial and --no-recursive are ignored, since a workspace only holds synced revisions anyway.
  • getter.go now passes the @branch part of the URL to Update too, so it can be rejected there; the other
    backends ignore it in Update, as before.
  • Log label p4, README section, shell completions.

Follow-ups (out of scope)

  • ghq rm removes only the local directory; the client spec stays on the server (p4 client -d <name>). Deleting it
    needs care with opened files and shelved changes, so it's left for a follow-up. A later ghq get reuses the client.
  • --branch for streams.
  • Possibly set P4CLIENTPATH for ghq's p4 calls, as defence in depth against a misbehaving server.

Testing

  • Unit tests in the fake CommandRunner style, including a small in-memory p4 server (client specs and have lists).
    They cover the command sequence and client spec contents; client reuse and collisions; failure cleanup (no login,
    rejected spec, failed or interrupted sync, concurrent nested checkout); URL validation and P4PORT mapping;
    .p4config parsing and validation; RemoteURL; client-name sanitizing; get -u identity and root checks;
    migrate rollback (rejected save, lost reply, unknown outcome, symlinked source); and URL/detection/list/create/get/rm tests.
  • go test ./..., go vet ./..., staticcheck, misspell and typos pass.
  • End-to-end against throwaway local p4d servers (helix-p4d 2026.1 in Docker, TCP and SSL, password-protected): 74
    checks, transcript below.
e2e transcript
p4d: P4D/LINUX26X86_64/2026.1/3089746 (2026/10/07)
servers: tcp localhost:32788, ssl ssl:localhost:32789
seeded: 9 files on tcp, 3 on ssl

== failure modes before the first checkout
$ ghq get p4://localhost:32788/depot/proj/main
     clone p4://localhost:32788/depot/proj/main -> $T/root/localhost/depot/proj/main
     error failed to get "p4://localhost:32788/depot/proj/main": $T/bin/p4: exit status 1: Perforce password (P4PASSWD) invalid or unset.
PASS: get without a p4 login fails
PASS:   ... and leaves no directory
$ ghq get p4://localhost:1/depot/proj/main
     clone p4://localhost:1/depot/proj/main -> $T/root/localhost/depot/proj/main
     error failed to get "p4://localhost:1/depot/proj/main": $T/bin/p4: exit status 1: Perforce client error:
	Connect to server failed; check $P4PORT.
	TCP connect to localhost:1 failed.
	connect: 127.0.0.1:1: Connection refused
PASS: get from a bad port fails
PASS:   ... and leaves no directory
$ ghq get p4://localhost:32788/nodepot/proj
     clone p4://localhost:32788/nodepot/proj -> $T/root/localhost/nodepot/proj
        p4 -p localhost:32788 -c e2e_<hostname>_nodepot_proj_97045c0f client -i
     error failed to get "p4://localhost:32788/nodepot/proj": $T/bin/p4: exit status 1: Error in client specification.
Mapping '//nodepot/proj/...' is not under '//repo/...'.
PASS: get from a nonexistent depot fails
PASS:   ... and leaves no workspace directory
$ ghq get p4://localhost:32788/depot/proj/main@label
     clone p4://localhost:32788/depot/proj/main -> $T/root/localhost/depot/proj/main
     error failed to get "p4://localhost:32788/depot/proj/main@label": --branch option (or @<revision> in the URL) is unavailable for Perforce; specify the depot path of the branch in the URL
PASS: get with @branch fails
$ ghq get --bare p4://localhost:32788/depot/proj/main
     clone p4://localhost:32788/depot/proj/main -> $T/root/localhost/depot/proj/main.git
     error failed to get "p4://localhost:32788/depot/proj/main": bare checkouts are unavailable for Perforce
PASS: get --bare fails
$ ghq get p4+ssl4://localhost:32788/depot/proj/main
     clone p4+ssl4://localhost:32788/depot/proj/main -> $T/root/localhost/depot/proj/main
     error failed to get "p4+ssl4://localhost:32788/depot/proj/main": unsupported scheme "p4+ssl4": use p4:// or p4+ssl://
PASS: get with an unknown p4+ transport fails
$ ghq get p4://localhost:32788/depot/proj/main#1
     clone p4://localhost:32788/depot/proj/main#1 -> $T/root/localhost/depot/proj/main
     error failed to get "p4://localhost:32788/depot/proj/main#1": invalid p4 URL "p4://localhost:32788/depot/proj/main#1": queries, fragments and revision specifiers are not supported
PASS: get with a #revision fragment fails
PASS:   ... and leaves no directory

== ghq get
$ ghq get p4://localhost:32788/depot/proj/main
     clone p4://localhost:32788/depot/proj/main -> $T/root/localhost/depot/proj/main
        p4 -p localhost:32788 -c e2e_<hostname>_depot_proj_main_2cda600d client -i
Client e2e_<hostname>_depot_proj_main_2cda600d saved.
        p4 -p localhost:32788 -c e2e_<hostname>_depot_proj_main_2cda600d sync
//depot/proj/main/README#1 - added as $T/root/localhost/depot/proj/main/README
//depot/proj/main/docs/with space.txt#1 - added as $T/root/localhost/depot/proj/main/docs/with space.txt
//depot/proj/main/src/main.go#1 - added as $T/root/localhost/depot/proj/main/src/main.go
Got the repo to the following:
$T/root/localhost/depot/proj/main
PASS: get succeeds
PASS: README synced
PASS: src/main.go synced
PASS: file with space synced
--- $T/root/localhost/depot/proj/main/.p4config:
P4PORT=localhost:32788
P4CLIENT=e2e_<hostname>_depot_proj_main_2cda600d
PASS: .p4config has P4PORT
PASS: .p4config has P4CLIENT
PASS: .p4config has exactly two lines
PASS: client name is <user>_<host>_<slug>_<hash>
--- client spec on the server:
Client:	e2e_<hostname>_depot_proj_main_2cda600d
Owner:	e2e
	Created by e2e.
Root:	$T/root/localhost/depot/proj/main
	//depot/proj/main/... //e2e_<hostname>_depot_proj_main_2cda600d/...
	-//depot/proj/main/.p4config //e2e_<hostname>_depot_proj_main_2cda600d/.p4config
PASS: client Root is the workspace (exact)
PASS: p4 itself finds the workspace via P4CONFIG
$ ghq get p4://localhost:32788/depot/proj/main
    exists $T/root/localhost/depot/proj/main
Got the repo to the following:
$T/root/localhost/depot/proj/main
PASS: second get reports exists and succeeds

== ghq get -u picks up a new submitted change
Change 2 submitted.
$ ghq get -u p4://localhost:32788/depot/proj/main
    update $T/root/localhost/depot/proj/main
        p4 -p localhost:32788 -c e2e_<hostname>_depot_proj_main_2cda600d sync
//depot/proj/main/NEWFILE#1 - added as $T/root/localhost/depot/proj/main/NEWFILE
//depot/proj/main/README#2 - updating $T/root/localhost/depot/proj/main/README
Got the repo to the following:
$T/root/localhost/depot/proj/main
PASS: get -u succeeds
PASS: edited README updated
PASS: new file synced
PASS: p4 sync -n reports up-to-date
$ ghq get -u p4://localhost:32788/depot/proj/main@1
    update $T/root/localhost/depot/proj/main
     error failed to get "p4://localhost:32788/depot/proj/main@1": --branch option (or @<revision> in the URL) is unavailable for Perforce; specify the depot path of the branch in the URL
PASS: get -u with @revision is refused
$ ghq get -u p4://localhost:32788/depot/proj/main.git
    update $T/root/localhost/depot/proj/main
     error failed to get "p4://localhost:32788/depot/proj/main.git": p4 client "e2e_<hostname>_depot_proj_main_2cda600d" of $T/root/localhost/depot/proj/main maps "//depot/proj/main", not "//depot/proj/main.git"
PASS: get -u of //depot/proj/main.git (same local path) is refused
$ ghq get -u --vcs p4 https://bob@localhost:32788/depot/proj/main
    update $T/root/localhost/depot/proj/main
     error failed to get "https://bob@localhost:32788/depot/proj/main": $T/root/localhost/depot/proj/main is a workspace of P4PORT=localhost:32788 P4USER=, not of https://bob@localhost:32788/depot/proj/main
PASS: get -u with an explicit https URL of another user is refused
$ ghq get -u --vcs p4 https://localhost:1/depot/proj/main
    update $T/root/localhost/depot/proj/main
     error failed to get "https://localhost:1/depot/proj/main": $T/root/localhost/depot/proj/main is a workspace of P4PORT=localhost:32788 P4USER=, not of https://localhost:1/depot/proj/main
PASS: get -u with an explicit https URL of another port is refused

== ghq list
$ ghq list
localhost/depot/proj/main
PASS: list shows localhost/depot/proj/main
$ ghq list -p
$T/root/localhost/depot/proj/main
PASS: list -p path is $T/root/localhost/depot/proj/main
PASS: list --vcs p4
PASS: list -e <p4 URL>
PASS: list --vcs git excludes it
PASS: shared .p4config files (no P4CLIENT) above it do not hide it
PASS: root/host .p4config files naming a client do not hide it
$ ghq get -u p4+ssl://localhost:32789/depot/proj/main
    update $T/root/localhost/depot/proj/main
     error failed to get "p4+ssl://localhost:32789/depot/proj/main": $T/root/localhost/depot/proj/main is a workspace of P4PORT=localhost:32788 P4USER=, not of p4+ssl://localhost:32789/depot/proj/main
PASS: get -u with a URL of another server is refused

== ghq rm
$ ghq rm p4://localhost:32788/depot/proj/main
Remove $T/root/localhost/depot/proj/main? [y/N]: Removed $T/root/localhost/depot/proj/main
PASS: rm removes the directory
PASS: client stays on the server (documented follow-up)
$ ghq list
PASS: list is empty after rm

== get again after rm reuses the leftover client (stale have list)
$ ghq get p4://localhost:32788/depot/proj/main
     clone p4://localhost:32788/depot/proj/main -> $T/root/localhost/depot/proj/main
        p4 -p localhost:32788 -c e2e_<hostname>_depot_proj_main_2cda600d client -i
Client e2e_<hostname>_depot_proj_main_2cda600d not changed.
        p4 -p localhost:32788 -c e2e_<hostname>_depot_proj_main_2cda600d sync -k //e2e_<hostname>_depot_proj_main_2cda600d/...#none
//depot/proj/main/NEWFILE#1 - deleted as $T/root/localhost/depot/proj/main/NEWFILE
//depot/proj/main/README#2 - deleted as $T/root/localhost/depot/proj/main/README
//depot/proj/main/docs/with space.txt#1 - deleted as $T/root/localhost/depot/proj/main/docs/with space.txt
//depot/proj/main/src/main.go#1 - deleted as $T/root/localhost/depot/proj/main/src/main.go
        p4 -p localhost:32788 -c e2e_<hostname>_depot_proj_main_2cda600d sync
//depot/proj/main/NEWFILE#1 - added as $T/root/localhost/depot/proj/main/NEWFILE
//depot/proj/main/README#2 - added as $T/root/localhost/depot/proj/main/README
//depot/proj/main/docs/with space.txt#1 - added as $T/root/localhost/depot/proj/main/docs/with space.txt
//depot/proj/main/src/main.go#1 - added as $T/root/localhost/depot/proj/main/src/main.go
Got the repo to the following:
$T/root/localhost/depot/proj/main
PASS: re-get succeeds
PASS:   ... files are back
PASS:   ... same client name
PASS:   ... have list matches the files
PASS:   ... have list lists all 4 files

== client name collision with a foreign root
$ ghq get p4://localhost:32788/depot/proj/main
     clone p4://localhost:32788/depot/proj/main -> $T/root/localhost/depot/proj/main
     error failed to get "p4://localhost:32788/depot/proj/main": p4 client "e2e_<hostname>_depot_proj_main_2cda600d" already exists with root "$T/elsewhere"
PASS: get refuses to take over a client with another root
PASS:   ... and leaves no directory
PASS:   ... and does not modify that client

== empty depot path
$ ghq get p4://localhost:32788/depot/empty/path
     clone p4://localhost:32788/depot/empty/path -> $T/root/localhost/depot/empty/path
        p4 -p localhost:32788 -c e2e_<hostname>_depot_empty_path_68206323 client -i
Client e2e_<hostname>_depot_empty_path_68206323 saved.
        p4 -p localhost:32788 -c e2e_<hostname>_depot_empty_path_68206323 sync
No such file(s).
   warning no files found in //depot/empty/path/...; the workspace is empty
Got the repo to the following:
$T/root/localhost/depot/empty/path
PASS: get of an empty path succeeds with a warning
PASS:   ... workspace has only .p4config

== p4+ssl://
$ ghq get p4+ssl://localhost:32789/depot/sslproj/main
     clone p4+ssl://localhost:32789/depot/sslproj/main -> $T/root/localhost/depot/sslproj/main
        p4 -p ssl:localhost:32789 -c e2e_<hostname>_depot_sslproj_main_89dd76f2 client -i
Client e2e_<hostname>_depot_sslproj_main_89dd76f2 saved.
        p4 -p ssl:localhost:32789 -c e2e_<hostname>_depot_sslproj_main_89dd76f2 sync
//depot/sslproj/main/README#1 - added as $T/root/localhost/depot/sslproj/main/README
//depot/sslproj/main/docs/with space.txt#1 - added as $T/root/localhost/depot/sslproj/main/docs/with space.txt
//depot/sslproj/main/src/main.go#1 - added as $T/root/localhost/depot/sslproj/main/src/main.go
Got the repo to the following:
$T/root/localhost/depot/sslproj/main
PASS: ssl get succeeds
PASS:   ... files synced
PASS:   ... .p4config has ssl P4PORT
$ ghq get -u p4+ssl://localhost:32789/depot/sslproj/main
    update $T/root/localhost/depot/sslproj/main
        p4 -p ssl:localhost:32789 -c e2e_<hostname>_depot_sslproj_main_89dd76f2 sync
//depot/sslproj/main/README#2 - updating $T/root/localhost/depot/sslproj/main/README
Got the repo to the following:
$T/root/localhost/depot/sslproj/main
PASS:   ... get -u over ssl

== user in URL
$ ghq get p4://bob@localhost:32788/depot/proj/rel
     clone p4://bob@localhost:32788/depot/proj/rel -> $T/root/localhost/depot/proj/rel
        p4 -p localhost:32788 -u bob -c bob_<hostname>_depot_proj_rel_2be77c0a client -i
Client bob_<hostname>_depot_proj_rel_2be77c0a saved.
        p4 -p localhost:32788 -u bob -c bob_<hostname>_depot_proj_rel_2be77c0a sync
//depot/proj/rel/README#1 - added as $T/root/localhost/depot/proj/rel/README
//depot/proj/rel/docs/with space.txt#1 - added as $T/root/localhost/depot/proj/rel/docs/with space.txt
//depot/proj/rel/src/main.go#1 - added as $T/root/localhost/depot/proj/rel/src/main.go
Got the repo to the following:
$T/root/localhost/depot/proj/rel
PASS: get as bob succeeds
PASS:   ... .p4config has P4USER=bob
PASS:   ... client owned by bob
PASS:   ... client name starts with bob_

== ghq.<url>.vcs = p4 with an https:// URL
$ ghq get https://localhost:32788/depot/proj/dev
     clone https://localhost:32788/depot/proj/dev -> $T/root/localhost/depot/proj/dev
        p4 -p localhost:32788 -c e2e_<hostname>_depot_proj_dev_3e8be455 client -i
Client e2e_<hostname>_depot_proj_dev_3e8be455 saved.
        p4 -p localhost:32788 -c e2e_<hostname>_depot_proj_dev_3e8be455 sync
//depot/proj/dev/README#1 - added as $T/root/localhost/depot/proj/dev/README
//depot/proj/dev/docs/with space.txt#1 - added as $T/root/localhost/depot/proj/dev/docs/with space.txt
//depot/proj/dev/src/main.go#1 - added as $T/root/localhost/depot/proj/dev/src/main.go
Got the repo to the following:
$T/root/localhost/depot/proj/dev
PASS: get via ghq.<url>.vcs succeeds
PASS:   ... files synced
PASS:   ... .p4config has tcp P4PORT

== ghq migrate
$ ghq migrate -y $T/outside/dev
$T/root/localhost/depot/proj/dev
PASS: migrate succeeds
PASS:   ... workspace moved back under the root
PASS:   ... client Root updated
$ ghq get -u p4://localhost:32788/depot/proj/dev
    update $T/root/localhost/depot/proj/dev
        p4 -p localhost:32788 -c e2e_<hostname>_depot_proj_dev_3e8be455 sync
//depot/proj/dev/DEV2#1 - added as $T/root/localhost/depot/proj/dev/DEV2
Got the repo to the following:
$T/root/localhost/depot/proj/dev
PASS:   ... get -u after migrate syncs into the new root

== migrate refuses a copy of a workspace whose client is rooted elsewhere
$ ghq migrate -y $T/copy-of-dev
     error failed to get remote URL: the root of p4 client "e2e_<hostname>_depot_proj_dev_3e8be455" is "$T/root/localhost/depot/proj/dev", not "$T/copy-of-dev"
PASS: migrate of a copy fails
PASS:   ... the copy stays where it was
PASS:   ... the original client keeps its root

== migrate rolls back when the client root cannot be updated
$ ghq migrate -y $T/outside/dev
     error failed to update the root of the p4 client, moved the workspace back: the root of the p4 client was not changed: $T/bin/p4: exit status 1: Locked client 'e2e_<hostname>_depot_proj_dev_3e8be455' owned by 'bob'; use -f to force update.
PASS: migrate fails when the client is locked by another owner
PASS:   ... the workspace is moved back
$ ghq migrate -y $T/outside-link/dev
$T/root/localhost/depot/proj/dev
PASS:   ... and succeeds once unlocked, even via a symlinked path
PASS:   ... client Root updated

== untrusted .p4config with a command-running P4PORT
$ ghq list
localhost/depot/proj/dev
localhost/depot/proj/rel
localhost/depot/sslproj/main
$ ghq get -u --vcs p4 https://example.com/evil/repo
    update $T/root/example.com/evil/repo
     error failed to get "https://example.com/evil/repo": failed to detect VCS for "$T/root/example.com/evil/repo"
$ ghq migrate --dry-run $T/untrusted
     error failed to detect VCS backend in "$T/untrusted"
PASS: no command was run from P4PORT=rsh:...

== final ghq list
$ ghq list -p
$T/root/localhost/depot/proj/dev
$T/root/localhost/depot/proj/rel
$T/root/localhost/depot/sslproj/main

ALL E2E CHECKS PASSED

🤖 Generated with Claude Code

t04dJ14n9 and others added 4 commits November 15, 2026 23:38
Add a Perforce backend for p4://host[:port]/depot/path and
p4+ssl://host[:port]/depot/path URLs (default port 1666), also selectable
with --vcs=p4 or ghq.<url>.vcs = p4.

"ghq get" creates a client whose root is the local directory and whose
view maps //depot/path/... into it, records P4PORT/P4CLIENT (and P4USER
from the URL) in .p4config, and runs "p4 sync". "ghq get -u" runs
"p4 sync" with the server and client from .p4config passed explicitly.
.p4config marks the workspace for "ghq list". "ghq migrate" updates the
root of the client.

Client names are <user>_<hostname>_<depot path>_<hash>; an existing
client is reused only when its root is the target directory.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Accept only tcp/ssl P4PORT forms from .p4config and URLs; a P4PORT
  such as rsh:<command> made p4 run a local command.
- Treat .p4config as a workspace only if it names a valid client, so
  shared P4CONFIG files no longer hide repositories below them.
- Check that the client exists and is rooted at the workspace before
  "get -u" and RemoteURL; p4 sync writes to the root on the server.
- Refuse "get -u" with a p4:// URL of another server or user (ghq
  paths omit the port).
- Claim the workspace directory exclusively before running p4, and
  remove only that directory on failure.
- Reject URL fragments and queries (p4://host/path#rev used to sync head).
- Hash the raw user and hostname into client names.
- migrate: fail and move the workspace back if the client root cannot
  be updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Clone: until "p4 sync" starts, clean up only .p4config and the
  directory if still empty, so a nested checkout created meanwhile is
  never deleted; keep a workspace whose sync failed for "ghq get -u".
- get -u: reject @revision (the getter now passes it to Update) and a
  p4:// URL whose depot path is not the client's (ghq strips ".git").
- migrate: capture the client root before moving and compare the server's
  value afterwards; after a failed save, re-read the client to tell an
  applied save (lost reply) from an unchanged one before moving back, and
  leave the workspace in place when the outcome is unknown.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Clone: clear a reused client's have list with "sync -k //client/...#none"
  and run a plain sync instead of "sync -f", so that an interrupted sync
  is resumed correctly by "ghq get -u".
- Reject p4+ schemes other than p4+ssl instead of falling back to TCP.
- get -u: check the user, an explicit port and the depot path of every
  URL, not only p4:// ones (e.g. --vcs=p4 with an https URL); allow URLs
  of directories inside the workspace.
- migrate: treat a client already rooted at the destination as moved, and
  do not move the workspace back when its root was changed by others.
- list: ignore .p4config in a root or <host> directory, where ghq never
  creates p4 workspaces, so shared settings naming a client do not hide
  other repositories.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant